<?php
function curl_get_file_contents( $URL )
{
    $c = curl_init();
    curl_setopt( $c, CURLOPT_RETURNTRANSFER, 1 );
    curl_setopt( $c, CURLOPT_URL, $URL );
    curl_setopt( $c, CURLOPT_HTTPHEADER, array( "Host: video.shishicai.cn", "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.4) Gecko/20100527 Firefox/3.6.4", "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language: zh-cn,zh;q=0.5", "Accept-Charset: GB2312,utf-8;q=0.7,*;q=0.7", "Keep-Alive: 115", "Connection: keep-alive", "Cookie: ASP.NET_SessionId=pidkyumdichr3f45wjqxtyyv; __utma=193525290.106211793.1275909871.1275909871.1275909871.1; __utmb=193525290.1.10.1275909871; __utmc=193525290; __utmz=193525290.1275909871.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); cck_lasttime=1275909870544; cck_count=0; __utma=193525290.106211793.1275909871.1275909871.1275909871.1; __utmb=193525290.2.10.1275909871; __utmc=193525290", "Cache-Control: max-age=0" ) );
    $contents = curl_exec( $c );
    curl_close( $c );
    if ( $contents )
    {
        return $contents;
    }
    return FALSE;
}

if ( !defined( "IN_OP" ) )
{
    exit( "You can't access this file directly..." );
}
$gametype = intval( getvar( "gametype" ) );
$openUrl = array( 0 => "", 1 => "", 2 => "", 10 => "http://video.shishicai.cn/haoma/shssl/list/23.aspx", 11 => "http://video.shishicai.cn/haoma/tjssc/list/84.aspx", 12 => "http://video.shishicai.cn/haoma/cqssc/list/120.aspx", 13 => "http://video.shishicai.cn/haoma/jxssc/list/84.aspx", 14 => "http://video.shishicai.cn/haoma/xjssc/list/84.aspx", 15 => "http://video.shishicai.cn/haoma/fjssc/list/88.aspx", 20 => "http://video.shishicai.cn/haoma/gxkl10/list/50.aspx", 21 => "http://video.shishicai.cn/haoma/gdkl10/list/84.aspx", 22 => "http://video.shishicai.cn/haoma/tjkl10/list/84.aspx", 23 => "http://video.shishicai.cn/haoma/hnkl10/list/84.aspx" );
$url = $openUrl[$gametype];
if ( $url == "" )
{
    exit();
}
$strTemp = curl_get_file_contents( $url );
$strTemp = substr( $strTemp, strpos( $strTemp, "var listIssue =" ) );
$strTemp = substr( $strTemp, 0, strpos( $strTemp, "var stringBuilder =" ) );
echo $strTemp." _end_ ";
exit();
?>